﻿// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com

// ReSharper disable CheckNamespace
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable CommentTypo
// ReSharper disable IdentifierTypo
// ReSharper disable InconsistentNaming
// ReSharper disable StringLiteralTypo
// ReSharper disable UnusedParameter.Local

/* PaintTextContext.cs --
 * Ars Magna project, http://arsmagna.ru
 */

#region Using directives

using SkiaSharp;

#endregion

#nullable enable

namespace AM.Skia.RichTextKit;

/// <summary>
/// Resolved, internal class used to pass paint context info
/// </summary>
internal class PaintTextContext
{
    public SKCanvas? Canvas;
    public int SelectionStart;
    public int SelectionEnd;
    public SKPaint? PaintSelectionBackground;
    public SKPaint? PaintSelectionHandle;
    public float SelectionHandleScale = 1.0f;
    public TextPaintOptions? Options;
}
